<template>
  <div class="menu">
    <div class="title" @click="toHome">打字练习</div>
  </div>
</template>
<script setup>
import { useRouter } from "vue-router";
const router = useRouter();
const toHome = () => {
  router.push("./");
};
</script>
<style lang="less" scoped>
.menu {
  box-sizing: border-box;
  width: 100%;
  height: 58px;
  background-color: var(--color-neutral-2);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #535050;
  .title {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
  }
}
</style>